/******************************************************************/
/*                                                                */
/*  Winpooch : Windows Watchdog                                   */
/*  Copyright (C) 2004-2006  Benoit Blanchon                      */
/*                                                                */
/*  This program is free software; you can redistribute it        */
/*  and/or modify it under the terms of the GNU General Public    */
/*  License as published by the Free Software Foundation; either  */
/*  version 2 of the License, or (at your option) any later       */
/*  version.                                                      */
/*                                                                */
/*  This program is distributed in the hope that it will be       */
/*  useful, but WITHOUT ANY WARRANTY; without even the implied    */
/*  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       */
/*  PURPOSE.  See the GNU General Public License for more         */
/*  details.                                                      */
/*                                                                */
/*  You should have received a copy of the GNU General Public     */
/*  License along with this program; if not, write to the Free    */
/*  Software Foundation, Inc.,                                    */
/*  675 Mass Ave, Cambridge, MA 02139, USA.                       */
/*                                                                */
/******************************************************************/

#ifndef _SCAN_CACHE_H
#define _SCAN_CACHE_H

#include <windows.h>

#define WM_SCANCACHENOTIFY	(WM_USER+11)

#define SCN_FILEADDED		1
#define SCN_FILEUPDATED		2


typedef BOOL (*ENUMTRUSTEDFILESCB)(LPVOID,UINT,LPCTSTR,LARGE_INTEGER*) ;

BOOL ScanCache_Init () ;

VOID ScanCache_Uninit () ;

VOID ScanCache_SetNotifyHwnd (HWND) ;

BOOL ScanCache_IsFileTrusted (LPCTSTR		szFilePath, 
			      LARGE_INTEGER	*pliFileTime) ;

BOOL ScanCache_AddTrustedFile (LPCTSTR		szFilePath, 
			       LARGE_INTEGER	*pliScanTime) ;

BOOL ScanCache_EnumTrustedFiles (ENUMTRUSTEDFILESCB, LPVOID) ;

BOOL ScanCache_GetTrustedFile (UINT nNumber,
			       LPTSTR szFilePath, UINT nMaxFilePath,
			       LARGE_INTEGER *pliScanTime) ;


#endif
